float4x4 xViewProjection;

struct VertexToPixel
{
	float4 Position		: POSITION;
	float4 Color		: COLOR0;
};

//VertexToPixel SimplestVertexShader(float4 inColor: COLOR0, float4 inPos: POSITION)
VertexToPixel SimplestVertexShader(float4 inPos: POSITION, float4 inColor: COLOR0)
{
	VertexToPixel output = (VertexToPixel)0;

	output.Position = mul(inPos, xViewProjection);
	output.Color = inColor;

	return output;
}

struct PixelToFrame
{
	float4 Color		:COLOR0;
};

PixelToFrame OurFirstPixelShader(VertexToPixel PSIn)
{
	PixelToFrame Output = (PixelToFrame)0;

	Output.Color = PSIn.Color;
	return Output;
}

technique Simplest
{
	pass Pass0
	{
		VertexShader = compile vs_2_0 SimplestVertexShader();
		PixelShader = compile ps_2_0 OurFirstPixelShader();
	}
}

